package top.weiliang.springboot3.entity.auth;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
//实体类对应的表名称
@TableName("tb_role")
public class TbRole implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    //自增主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String roleName;
    private String roleInfo;
}
